import { createStore, combineReducers } from "redux";
import counterReducer from "./counterSlice";
import userReducer from "./userSlice";

// 用 combineReducers 管理多个 reducer
const rootReducer = combineReducers({
  counter: counterReducer,
  user: userReducer,
});

// 创建 store
const store = createStore(rootReducer);

export default store;
